package com.csii.modules.online.cgform.model;

import com.csii.core.system.vo.DictModel;
import com.csii.modules.online.cgform.entity.OnlCgformButton;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class OnlForeignKey {
	private String field;
	private String table;
	private String key;

	public OnlForeignKey() {
	}

	public OnlForeignKey(String var1, String var2) {
		this.key = var2;
		this.field = var1;
	}

	public String getField() {
		return this.field;
	}

	public String getTable() {
		return this.table;
	}

	public String getKey() {
		return this.key;
	}

	public void setField(String field) {
		this.field = field;
	}

	public void setTable(String table) {
		this.table = table;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public boolean equals(Object o) {
		if (o == this) {
			return true;
		} else if (!(o instanceof OnlForeignKey)) {
			return false;
		} else {
			OnlForeignKey var2 = (OnlForeignKey) o;
			if (!var2.a(this)) {
				return false;
			} else {
				label47:
				{
					String var3 = this.getField();
					String var4 = var2.getField();
					if (var3 == null) {
						if (var4 == null) {
							break label47;
						}
					} else if (var3.equals(var4)) {
						break label47;
					}

					return false;
				}

				String var5 = this.getTable();
				String var6 = var2.getTable();
				if (var5 == null) {
					if (var6 != null) {
						return false;
					}
				} else if (!var5.equals(var6)) {
					return false;
				}

				String var7 = this.getKey();
				String var8 = var2.getKey();
				if (var7 == null) {
					if (var8 != null) {
						return false;
					}
				} else if (!var7.equals(var8)) {
					return false;
				}

				return true;
			}
		}
	}

	protected boolean a(Object var1) {
		return var1 instanceof OnlForeignKey;
	}

	public int hashCode() {
		boolean var1 = true;
		byte var2 = 1;
		String var3 = this.getField();
		int var6 = var2 * 59 + (var3 == null ? 43 : var3.hashCode());
		String var4 = this.getTable();
		var6 = var6 * 59 + (var4 == null ? 43 : var4.hashCode());
		String var5 = this.getKey();
		var6 = var6 * 59 + (var5 == null ? 43 : var5.hashCode());
		return var6;
	}

	public String toString() {
		return "OnlForeignKey(field=" + this.getField() + ", table=" + this.getTable() + ", key=" + this.getKey() + ")";
	}

	public static class OnlComplexModel {
		private String b;
		private String c;
		private String d;
		private String e;
		private Integer f;
		private String g;
		private String h;
		private Integer i;
		private List<OnlColumn> j;
		private List<String> k;
		private Map<String, List<DictModel>> l = new HashMap();
		private List<OnlCgformButton> m;
		List<HrefSlots> a;
		private String n;
		private List<OnlForeignKey> o;
		private String p;
		private String q;
		private String r;

		public String getCode() {
			return this.b;
		}

		public String getFormTemplate() {
			return this.c;
		}

		public String getDescription() {
			return this.d;
		}

		public String getCurrentTableName() {
			return this.e;
		}

		public Integer getTableType() {
			return this.f;
		}

		public String getPaginationFlag() {
			return this.g;
		}

		public String getCheckboxFlag() {
			return this.h;
		}

		public Integer getScrollFlag() {
			return this.i;
		}

		public List<OnlColumn> getColumns() {
			return this.j;
		}

		public List<String> getHideColumns() {
			return this.k;
		}

		public Map<String, List<DictModel>> getDictOptions() {
			return this.l;
		}

		public List<OnlCgformButton> getCgButtonList() {
			return this.m;
		}

		public List<HrefSlots> getFieldHrefSlots() {
			return this.a;
		}

		public String getEnhanceJs() {
			return this.n;
		}

		public List<OnlForeignKey> getForeignKeys() {
			return this.o;
		}

		public String getPidField() {
			return this.p;
		}

		public String getHasChildrenField() {
			return this.q;
		}

		public String getTextField() {
			return this.r;
		}

		public void setCode(String code) {
			this.b = code;
		}

		public void setFormTemplate(String formTemplate) {
			this.c = formTemplate;
		}

		public void setDescription(String description) {
			this.d = description;
		}

		public void setCurrentTableName(String currentTableName) {
			this.e = currentTableName;
		}

		public void setTableType(Integer tableType) {
			this.f = tableType;
		}

		public void setPaginationFlag(String paginationFlag) {
			this.g = paginationFlag;
		}

		public void setCheckboxFlag(String checkboxFlag) {
			this.h = checkboxFlag;
		}

		public void setScrollFlag(Integer scrollFlag) {
			this.i = scrollFlag;
		}

		public void setColumns(List<OnlColumn> columns) {
			this.j = columns;
		}

		public void setHideColumns(List<String> hideColumns) {
			this.k = hideColumns;
		}

		public void setDictOptions(Map<String, List<DictModel>> dictOptions) {
			this.l = dictOptions;
		}

		public void setCgButtonList(List<OnlCgformButton> cgButtonList) {
			this.m = cgButtonList;
		}

		public void setFieldHrefSlots(List<HrefSlots> fieldHrefSlots) {
			this.a = fieldHrefSlots;
		}

		public void setEnhanceJs(String enhanceJs) {
			this.n = enhanceJs;
		}

		public void setForeignKeys(List<OnlForeignKey> foreignKeys) {
			this.o = foreignKeys;
		}

		public void setPidField(String pidField) {
			this.p = pidField;
		}

		public void setHasChildrenField(String hasChildrenField) {
			this.q = hasChildrenField;
		}

		public void setTextField(String textField) {
			this.r = textField;
		}

		public boolean equals(Object o) {
			if (o == this) {
				return true;
			} else if (!(o instanceof OnlComplexModel)) {
				return false;
			} else {
				OnlComplexModel var2 = (OnlComplexModel) o;
				if (!var2.a(this)) {
					return false;
				} else {
					String var3 = this.getCode();
					String var4 = var2.getCode();
					if (var3 == null) {
						if (var4 != null) {
							return false;
						}
					} else if (!var3.equals(var4)) {
						return false;
					}

					String var5 = this.getFormTemplate();
					String var6 = var2.getFormTemplate();
					if (var5 == null) {
						if (var6 != null) {
							return false;
						}
					} else if (!var5.equals(var6)) {
						return false;
					}

					String var7 = this.getDescription();
					String var8 = var2.getDescription();
					if (var7 == null) {
						if (var8 != null) {
							return false;
						}
					} else if (!var7.equals(var8)) {
						return false;
					}

					label206:
					{
						String var9 = this.getCurrentTableName();
						String var10 = var2.getCurrentTableName();
						if (var9 == null) {
							if (var10 == null) {
								break label206;
							}
						} else if (var9.equals(var10)) {
							break label206;
						}

						return false;
					}

					label199:
					{
						Integer var11 = this.getTableType();
						Integer var12 = var2.getTableType();
						if (var11 == null) {
							if (var12 == null) {
								break label199;
							}
						} else if (var11.equals(var12)) {
							break label199;
						}

						return false;
					}

					String var13 = this.getPaginationFlag();
					String var14 = var2.getPaginationFlag();
					if (var13 == null) {
						if (var14 != null) {
							return false;
						}
					} else if (!var13.equals(var14)) {
						return false;
					}

					label185:
					{
						String var15 = this.getCheckboxFlag();
						String var16 = var2.getCheckboxFlag();
						if (var15 == null) {
							if (var16 == null) {
								break label185;
							}
						} else if (var15.equals(var16)) {
							break label185;
						}

						return false;
					}

					label178:
					{
						Integer var17 = this.getScrollFlag();
						Integer var18 = var2.getScrollFlag();
						if (var17 == null) {
							if (var18 == null) {
								break label178;
							}
						} else if (var17.equals(var18)) {
							break label178;
						}

						return false;
					}

					List var19 = this.getColumns();
					List var20 = var2.getColumns();
					if (var19 == null) {
						if (var20 != null) {
							return false;
						}
					} else if (!var19.equals(var20)) {
						return false;
					}

					List var21 = this.getHideColumns();
					List var22 = var2.getHideColumns();
					if (var21 == null) {
						if (var22 != null) {
							return false;
						}
					} else if (!var21.equals(var22)) {
						return false;
					}

					label157:
					{
						Map var23 = this.getDictOptions();
						Map var24 = var2.getDictOptions();
						if (var23 == null) {
							if (var24 == null) {
								break label157;
							}
						} else if (var23.equals(var24)) {
							break label157;
						}

						return false;
					}

					label150:
					{
						List var25 = this.getCgButtonList();
						List var26 = var2.getCgButtonList();
						if (var25 == null) {
							if (var26 == null) {
								break label150;
							}
						} else if (var25.equals(var26)) {
							break label150;
						}

						return false;
					}

					List var27 = this.getFieldHrefSlots();
					List var28 = var2.getFieldHrefSlots();
					if (var27 == null) {
						if (var28 != null) {
							return false;
						}
					} else if (!var27.equals(var28)) {
						return false;
					}

					label136:
					{
						String var29 = this.getEnhanceJs();
						String var30 = var2.getEnhanceJs();
						if (var29 == null) {
							if (var30 == null) {
								break label136;
							}
						} else if (var29.equals(var30)) {
							break label136;
						}

						return false;
					}

					List var31 = this.getForeignKeys();
					List var32 = var2.getForeignKeys();
					if (var31 == null) {
						if (var32 != null) {
							return false;
						}
					} else if (!var31.equals(var32)) {
						return false;
					}

					label122:
					{
						String var33 = this.getPidField();
						String var34 = var2.getPidField();
						if (var33 == null) {
							if (var34 == null) {
								break label122;
							}
						} else if (var33.equals(var34)) {
							break label122;
						}

						return false;
					}

					String var35 = this.getHasChildrenField();
					String var36 = var2.getHasChildrenField();
					if (var35 == null) {
						if (var36 != null) {
							return false;
						}
					} else if (!var35.equals(var36)) {
						return false;
					}

					String var37 = this.getTextField();
					String var38 = var2.getTextField();
					if (var37 == null) {
						if (var38 != null) {
							return false;
						}
					} else if (!var37.equals(var38)) {
						return false;
					}

					return true;
				}
			}
		}

		protected boolean a(Object var1) {
			return var1 instanceof OnlComplexModel;
		}

		public int hashCode() {
			boolean var1 = true;
			byte var2 = 1;
			String var3 = this.getCode();
			int var21 = var2 * 59 + (var3 == null ? 43 : var3.hashCode());
			String var4 = this.getFormTemplate();
			var21 = var21 * 59 + (var4 == null ? 43 : var4.hashCode());
			String var5 = this.getDescription();
			var21 = var21 * 59 + (var5 == null ? 43 : var5.hashCode());
			String var6 = this.getCurrentTableName();
			var21 = var21 * 59 + (var6 == null ? 43 : var6.hashCode());
			Integer var7 = this.getTableType();
			var21 = var21 * 59 + (var7 == null ? 43 : var7.hashCode());
			String var8 = this.getPaginationFlag();
			var21 = var21 * 59 + (var8 == null ? 43 : var8.hashCode());
			String var9 = this.getCheckboxFlag();
			var21 = var21 * 59 + (var9 == null ? 43 : var9.hashCode());
			Integer var10 = this.getScrollFlag();
			var21 = var21 * 59 + (var10 == null ? 43 : var10.hashCode());
			List var11 = this.getColumns();
			var21 = var21 * 59 + (var11 == null ? 43 : var11.hashCode());
			List var12 = this.getHideColumns();
			var21 = var21 * 59 + (var12 == null ? 43 : var12.hashCode());
			Map var13 = this.getDictOptions();
			var21 = var21 * 59 + (var13 == null ? 43 : var13.hashCode());
			List var14 = this.getCgButtonList();
			var21 = var21 * 59 + (var14 == null ? 43 : var14.hashCode());
			List var15 = this.getFieldHrefSlots();
			var21 = var21 * 59 + (var15 == null ? 43 : var15.hashCode());
			String var16 = this.getEnhanceJs();
			var21 = var21 * 59 + (var16 == null ? 43 : var16.hashCode());
			List var17 = this.getForeignKeys();
			var21 = var21 * 59 + (var17 == null ? 43 : var17.hashCode());
			String var18 = this.getPidField();
			var21 = var21 * 59 + (var18 == null ? 43 : var18.hashCode());
			String var19 = this.getHasChildrenField();
			var21 = var21 * 59 + (var19 == null ? 43 : var19.hashCode());
			String var20 = this.getTextField();
			var21 = var21 * 59 + (var20 == null ? 43 : var20.hashCode());
			return var21;
		}

		public String toString() {
			return "OnlComplexModel(code=" + this.getCode() + ", formTemplate=" + this.getFormTemplate() + ", description=" + this.getDescription() + ", currentTableName=" + this.getCurrentTableName() + ", tableType=" + this.getTableType() + ", paginationFlag=" + this.getPaginationFlag() + ", checkboxFlag=" + this.getCheckboxFlag() + ", scrollFlag=" + this.getScrollFlag() + ", columns=" + this.getColumns() + ", hideColumns=" + this.getHideColumns() + ", dictOptions=" + this.getDictOptions() + ", cgButtonList=" + this.getCgButtonList() + ", fieldHrefSlots=" + this.getFieldHrefSlots() + ", enhanceJs=" + this.getEnhanceJs() + ", foreignKeys=" + this.getForeignKeys() + ", pidField=" + this.getPidField() + ", hasChildrenField=" + this.getHasChildrenField() + ", textField=" + this.getTextField() + ")";
		}
	}
}
